<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Keeper Demo Online chat room</title>
<!-- The script's src attribute set in the /WEB-INF/web.xml file. -->
<script type="text/javascript" src="./keeperScript.js"></script>
<!-- <script type="text/javascript" src="./ajaxReq.js"></script> -->
<script type="text/javascript" src="/ag/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">

$(document).ready(function(){
	
	Keeper.addListener('1001001',showMsg,"GBK");

	function showMsg(obj){
		var msg = document.getElementById("msg");
		if(msg){
				msg.value = obj.responseText+"\n"+msg.value;
		}
	}
});
	
</script>
</head>
<body>
    <br/>
    <h2>This is observer</h2>
	<br/>
	<textarea rows="7" cols="80" id="msg"></textarea>
	<br/>
</body>
</html>